<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" type="text/css" href="./z-radio.css">
</head>
<body>
  <div>单选按钮(图标版,可取消选择)</div>
  <div style="display: flex;margin: 10px;">
    <div class="z-radio-btn-box" data-checked="false" data-value="1" name="radio">
      <span class="z-radio-btn"></span>
      <label class="z-radio-label">单选1</label>
    </div>
    <div class="z-radio-btn-box" data-checked="false" data-value="2" name="radio">
      <span class="z-radio-btn"></span>
      <label class="z-radio-label">单选2</label>
    </div>
    <div class="z-radio-btn-box" data-checked="false" data-value="2" name="radio">
      <span class="z-radio-btn"></span>
      <label class="z-radio-label">单选3</label>
    </div>
    <div class="z-radio-btn-box disabled" disabled data-checked="false" data-value="3" name="radio">
      <span class="z-radio-btn"></span>
      <label class="z-radio-label">单选3</label>
    </div>
  </div>
  
  <div>单选按钮(图标版,不可取消选择)</div>
  <div style="display: flex;margin: 10px;">
    <div class="z-radio-btn-box" data-checked="false" data-value="1" name="radio1">
      <span class="z-radio-btn"></span>
      <label class="z-radio-label">单选1</label>
    </div>
    <div class="z-radio-btn-box" data-checked="false" data-value="2" name="radio1">
      <span class="z-radio-btn"></span>
      <label class="z-radio-label">单选2</label>
    </div>
    <div class="z-radio-btn-box" data-checked="false" data-value="2" name="radio1">
      <span class="z-radio-btn"></span>
      <label class="z-radio-label">单选3</label>
    </div>
    <div class="z-radio-btn-box disabled" disabled data-checked="false" data-value="3" name="radio1">
      <span class="z-radio-btn"></span>
      <label class="z-radio-label">单选3</label>
    </div>
  </div>

  <div>单选按钮(css版,可取消选择)</div>
  <div style="display: flex;margin: 10px;">
    <div class="z-radio-btn-box1" data-checked="false" data-value="1" name="radio2">
      <div class="z-radio-btn">
        <div></div>
      </div>
      <label class="z-radio-label">单选1</label>
    </div>
    <div class="z-radio-btn-box1" data-checked="false" data-value="2" name="radio2">
      <div class="z-radio-btn">
        <div></div>
      </div>
      <label class="z-radio-label">单选2</label>
    </div>
    <div class="z-radio-btn-box1" data-checked="false" data-value="2" name="radio2">
      <div class="z-radio-btn">
        <div></div>
      </div>
      <label class="z-radio-label">单选3</label>
    </div>
    <div class="z-radio-btn-box1 disabled" disabled data-checked="false" data-value="3" name="radio2">
      <div class="z-radio-btn">
        <div></div>
      </div>
      <label class="z-radio-label">单选3</label>
    </div>
  </div>


</body>
<script src="../../jquery-3.6.0.min.js"></script>
<script type="module" src="./z-radio.js"></script>
</html>